<?php
use yii\helpers\Url;
use yii\web\View;
use app\assets\CreativeAppPreviewAsset;
CreativeAppPreviewAsset::register($this);
$this->title = 'App创意预览 -- vamaker DSP';
?>
<style>
  html,body,.cont{background-color: #fff;} 
</style>
<input type="hidden" class="creative-id" name="uuid" value="1">
<input type="hidden" class="creative-width" name="width" value="300" >
<input type="hidden" class="creative-height" name="height" value="300" >
<input type="hidden" class="creative-url" name="url" value="/uploads/test.mp4">
<input type="hidden" class="creative-type" name="type" value="mp4" >
<div id="creative-preview-wrap" class="creative-preview-wrap"></div>
<?php
  $appPluginUrl = Yii::getAlias('@web').'/js/vendor/flowplayer/flowplayer.swf';
  $this->registerJs("VAM.setVar('APP_PLUGIN_URL','$appPluginUrl');", View::POS_END);
?>
<script type="text/javascript" >
  requirejs(["<?= Yii::getAlias('@web/').Yii::$app->params['envDir'];?>/js/site.js"], function(common) {
    requirejs(["<?= Yii::getAlias('@web/').Yii::$app->params['envDir'];?>/js/creative/creativeAppPreview.js"]);
  });
</script>